package com.cashmama.market.api.domain.utils;

import com.cashmama.market.api.domain.enums.SmsReportRankEnum;

/**
 * @program: market-api
 * @description
 * @author: frank
 * @create: 2020-02-10 14:52
 **/
public class SmsReportUtils {

    public static String getSmsReportRank(Integer score){
        if(score > 300){
            return SmsReportRankEnum.EXCELLENT.getRank();
        }else if(score >= 240 && score <= 300){
            return SmsReportRankEnum.MIDDLING.getRank();
        }else{
            return SmsReportRankEnum.FAIL.getRank();
        }
    }
}
